package com.springboot.learn_web_rabbitmq.demo9.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class HelloReceiver1 {

    private static final Logger log=LoggerFactory.getLogger(HelloReceiver1.class);

    @RabbitListener(queues = "user")
    public void receiver(String message){
        log.info("Receiver < "+message+">");
    }
}
